import java.util.Arrays;

public class ArrSort {

	public static void main(String[] args) {
		int[] s = { 87, 57, 100, 61, 69 };
		Arrays.sort(s);

		for (int i = 0; i < s.length; i++) {
			System.out.print(s[i] + "\t");
		}
		System.out.println();
		char c[] = { 'f', 'g', 't', 'a' };
		for (int i = c.length - 1; i >= 0; i--) {
			System.out.print(c[i] + " ");
		}
	}
}
